.prose {
	color: inherit;
}

.prose code {
	color: inherit;
	background-color: rgba(156, 163, 175, 0.2);
	padding: 0.125rem 0.25rem;
	border-radius: 0.25rem;
	font-size: 0.875em;
}

.prose pre {
	background-color: #1f2937 !important;
	color: #f9fafb !important;
	padding: 1rem !important;
	border-radius: 0.5rem !important;
	overflow-x: auto;
	margin: 0.5rem 0;
}

.prose pre code {
	background-color: transparent !important;
	padding: 0 !important;
	color: inherit !important;
}

.prose p {
	margin-bottom: 0.5rem;
}

.prose p:last-child {
	margin-bottom: 0;
}

.prose ul,
.prose ol {
	margin: 0.5rem 0;
	padding-left: 1rem;
}

.prose li {
	margin-bottom: 0.25rem;
}

.prose h1,
.prose h2,
.prose h3 {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child {
	margin-top: 0;
}

.prose blockquote {
	border-left: 4px solid rgba(156, 163, 175, 0.5);
	padding-left: 0.75rem;
	font-style: italic;
	margin: 0.5rem 0;
	opacity: 0.8;
}

.dark .prose code {
	background-color: rgba(75, 85, 99, 0.3);
}

.dark .prose blockquote {
	border-left-color: rgba(156, 163, 175, 0.3);
}

.hljs {
	background: #1f2937 !important;
	color: #f9fafb !important;
}

.hljs-keyword {
	color: #c792ea !important;
}

.hljs-string {
	color: #c3e88d !important;
}

.hljs-number {
	color: #f78c6c !important;
}

.hljs-comment {
	color: #676e95 !important;
}

.hljs-function {
	color: #82aaff !important;
}

.hljs-variable {
	color: #ffcb6b !important;
}

.chat-scrollbar {
	scrollbar-width: thin;
	scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

.chat-scrollbar::-webkit-scrollbar {
	width: 6px;
}

.chat-scrollbar::-webkit-scrollbar-track {
	background: transparent;
}

.chat-scrollbar::-webkit-scrollbar-thumb {
	background-color: rgba(156, 163, 175, 0.3);
	border-radius: 3px;
	transition: background-color 0.2s ease;
}

.chat-scrollbar::-webkit-scrollbar-thumb:hover {
	background-color: rgba(156, 163, 175, 0.5);
}

.chat-scrollbar-fullscreen {
	scrollbar-width: thin;
	scrollbar-color: rgba(156, 163, 175, 0.2) transparent;
}

.chat-scrollbar-fullscreen::-webkit-scrollbar {
	width: 4px;
}

.chat-scrollbar-fullscreen::-webkit-scrollbar-track {
	background: transparent;
}

.chat-scrollbar-fullscreen::-webkit-scrollbar-thumb {
	background-color: rgba(156, 163, 175, 0.2);
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

.chat-scrollbar-fullscreen::-webkit-scrollbar-thumb:hover {
	background-color: rgba(156, 163, 175, 0.4);
}

.chat-scrollbar-hidden {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.chat-scrollbar-hidden::-webkit-scrollbar {
	display: none;
}

.copy-button {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.group:hover .copy-button {
	opacity: 1;
}

.code-block-container {
	position: relative;
}

.code-block-container pre {
	padding-right: 3rem;
}

.relative.group.inline-block {
	position: relative;
	display: inline-block;
}

.relative.group.inline-block code {
	padding-right: 1.5rem;
}

.relative.group.inline-block button {
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	padding: 1px 2px;
	background: rgba(75, 85, 101, 0.9);
	border: none;
	border-radius: 2px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	z-index: 10;
}

.relative.group.inline-block:hover button {
	opacity: 1;
}

.relative.group.inline-block button:hover {
	background: rgba(55, 65, 81, 1);
}

.dark .relative.group.inline-block button {
	background: rgba(156, 163, 175, 0.9);
}

.dark .relative.group.inline-block button:hover {
	background: rgba(209, 213, 219, 1);
}
